package com.jiyinit.web.core.mobile.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.jiyinit.core.framework.base.paging.PagingResult;
import com.jiyinit.web.core.mobile.dao.TabCoreBlueWallCommentDao;
import com.jiyinit.web.core.mobile.dto.BlueWallCommentRequest;
import com.jiyinit.web.core.mobile.entity.TabCoreBlueWallCommentEntity;

@Service("core.blueWallCommentServiceImpl")
public class BlueWallCommentServiceImpl {
	
	@Resource(name = "core.tabCoreBlueWallCommentDao")
	private TabCoreBlueWallCommentDao tabCoreBlueWallCommentDao;
	
	
	/**
     * 多条件分页查询
     * @param request
     * @return
     */
	public PagingResult<TabCoreBlueWallCommentEntity> findForPage(BlueWallCommentRequest request){
        return tabCoreBlueWallCommentDao.findForPage(request);
    }
	
	/**
	 * id查询
     * @param id
     * @return
     */
	public TabCoreBlueWallCommentEntity findOne(Integer id){
		return tabCoreBlueWallCommentDao.findOne(id);
	}
	
	/**
	 * 添加
     * @param entity
     * @return
     */
	public int add(TabCoreBlueWallCommentEntity entity){
		return tabCoreBlueWallCommentDao.add(entity);
	}
	
	/**
	 * 修改
     * @param entity
     * @return
     */
	public int update(TabCoreBlueWallCommentEntity entity){
		return tabCoreBlueWallCommentDao.update(entity);
	}
	
	/**
	 * 删除
     * @param id
     * @return
     */
	public int delete(Integer id){
		return tabCoreBlueWallCommentDao.delete(id);
	}

	/**
	 * 帖子详情
	 * @param request
	 * @return
	 */
    public PagingResult<TabCoreBlueWallCommentEntity> historyList(BlueWallCommentRequest request) {
		return tabCoreBlueWallCommentDao.historyList(request)	;
    }
}
